//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package cn.zust.edu.cn;

public class Rectangle implements IShape {
    private Point ptTopLeft;
    private Point ptTopRight;
    private int width;
    private int height;

    public Point getPtTopLeft() {
        return this.ptTopLeft;
    }

    public void setPtTopLeft(Point ptTopLeft) {
        this.ptTopLeft = ptTopLeft;
    }

    public Point getPtTopRight() {
        return this.ptTopRight;
    }

    public void setPtTopRight(Point ptTopRight) {
        this.ptTopRight = ptTopRight;
    }

    public int getWidth() {
        return this.width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return this.height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public Rectangle() {
    }

    public Rectangle(Point topleft, int hight, int width) {
        this.ptTopLeft = topleft;
        this.height = hight;
        this.width = width;
    }

    public double perimeter() {
        return (double)(2 * (this.width + this.height));
    }

    public double area() {
        return (double)(this.width * this.height);
    }

    public void draw() {
        System.out.println("Rectangle...");
    }
}
